From 6c6ed7496c10e95ba159c141c24d57f7ccd3435f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Thu, 26 Jan 2017 18:58:10 +0100 Subject: [PATCH] widget: Remove gtk_widget_class_list_style_properties Unused. --- docs/reference/gtk/gtk4-sections.txt | 1 - gtk/gtkwidget.c | 29 ---------------------------- gtk/gtkwidget.h | 3 --- 3 files changed, 33 deletions(-) diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index 0275499776..f511ab6d9d 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -4560,7 +4560,6 @@ gtk_widget_set_redraw_on_allocate gtk_widget_mnemonic_activate gtk_widget_class_install_style_property gtk_widget_class_find_style_property -gtk_widget_class_list_style_properties gtk_widget_send_focus_change gtk_widget_style_get gtk_widget_style_get_valist diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index fb3b6f867f..fcfcdc3300 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -11409,35 +11409,6 @@ gtk_widget_class_find_style_property (GtkWidgetClass *klass, TRUE); } -/** - * gtk_widget_class_list_style_properties: - * @klass: a #GtkWidgetClass - * @n_properties: (out): location to return the number of style properties found - * - * Returns all style properties of a widget class. - * - * Returns: (array length=n_properties) (transfer container): a - * newly allocated array of #GParamSpec*. The array must be - * freed with g_free(). - * - * Since: 2.2 - */ -GParamSpec** -gtk_widget_class_list_style_properties (GtkWidgetClass *klass, - guint *n_properties) -{ - GParamSpec **pspecs; - guint n; - - pspecs = g_param_spec_pool_list (style_property_spec_pool, - G_OBJECT_CLASS_TYPE (klass), - &n); - if (n_properties) - *n_properties = n; - - return pspecs; -} - /** * gtk_widget_style_get_valist: * @widget: a #GtkWidget diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index f9045c05e9..0be1d03e64 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -975,9 +975,6 @@ GDK_AVAILABLE_IN_ALL GParamSpec* gtk_widget_class_find_style_property (GtkWidgetClass *klass, const gchar *property_name); GDK_AVAILABLE_IN_ALL -GParamSpec** gtk_widget_class_list_style_properties (GtkWidgetClass *klass, - guint *n_properties); -GDK_AVAILABLE_IN_ALL void gtk_widget_style_get_valist (GtkWidget *widget, const gchar *first_property_name, va_list var_args); -- 2.30.2